import requestWithToken from "@/utils/request";

export const listAddress = () => {
  return requestWithToken("/address/list", "GET", {});
};
export const deleteAddress = (id: string) => {
  return requestWithToken("/address/delete", "GET", { id });
};
export const saveAddress = (data: any) => {
  return requestWithToken("/address/save", "POST", data);
};
export const getAddress = (id: string) => {
  return requestWithToken("/address/get", "GET", { id });
};
